/*
 * experimentexportui.cpp 实验导出页面
 */
#include "experimentexportui.h"

#include "deviceselfchecking.h"
#include "messagedialog.h"
#include "messageimgdialog.h"

ExperimentExportUI::ExperimentExportUI() {
    // 初始化
    this->setResizeMode(QQuickWidget::SizeRootObjectToView);
    this->setSource(QUrl("qrc:/experimentexport.qml"));

    // DeviceSelfChecking *dsc = new DeviceSelfChecking();
    // dsc->show();

    // MessageDialog::messageBox(NULL, Global::BoxType::Tips, "提示", "这是提示信息");
    // MessageImgDialog::messageBox(NULL, "提示", "这是提示信息");
}

ExperimentExportUI::~ExperimentExportUI() {

}

/**
 * @brief getContext 获取qmlcontext
 * @return qmlContext
 */
QQmlContext* ExperimentExportUI::getContext() const
{
    return this->rootContext();
}

/**
 * @brief getRootObject 获取rootObject
 * @return rootObject
 */
QObject* ExperimentExportUI::getRootObject() const
{
    return (QObject*)this->rootObject();
}
